import api from '@/api/index.ts'

// 获取人员列表
export function GetData(params: any) {
  return api.get('/api/security/admin/list', { params })
}
// 添加人员
export function PostCreatePeo(params: any) {
  return api.post('/api/security/admin/create', params)
}
// 获取人员详情数据
export function GetDataDetail(id: string) {
  return api.get(`/api/security/admin/detail/${id}`)
}
// 修改人员状态
export function PatchListSort(params: any) {
  return api.patch(`/api/security/admin/modifystatus`, params)
}
// 编辑人员信息
export function PutDetailsRedact(params: any) {
  return api.put(`/api/security/admin/modify`, params)
}
// 修改密码
export function PatchDetailsPassword(params: any) {
  return api.patch(`/api/security/admin/modifypassword`, params)
}
